<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>贪吃蛇</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        button,
        input {
            padding: 10px;
            outline: none;
        }

        .map {
            width: 820px;
            height: 620px;
            border: 10px solid #BBFFFF;
            background-color: #B7FF4A;
            margin: 15px auto;
            position: relative;


        }

        .map>.food {
            width: 25px;
            height: 25px;
            background-image: url(./img/food.jpg);
            position: absolute;
            /* left: 100px;
            top: 100px; */

        }

        .map>.head {
            width: 25px;
            height: 25px;
            background-image: url(./img/right.jpg);
            /* top: 0;
            left: 100px; */
            position: absolute;
        }

        .map>.body {
            width: 25px;
            height: 25px;
            background-image: url(./img/body.jpg);
            /* top: 0;
            left: 75px; */
            position: absolute;
        }
    </style>
</head>

<body>
    <button class="start">开始</button>
    <button class="stop">停止</button>
    <button class="restart">重新开始</button>
    <input type="text" value="0" class="score">

    <div class="map">

    </div>
    <script src="./main.js" type="module"></script>
</body>

</html>